package com.tuanzi.loan.business.service.wallet;

import org.springframework.data.domain.Page;

import com.tuanzi.loan.business.entity.wallet.LoanUserWallet;
import com.tuanzi.loan.core.service.CommonService;
import com.tuanzi.loan.core.vo.PageSearcher;
import com.tuanzi.loan.vo.request.wallet.LoanUserWalletRequest;
import com.tuanzi.loan.vo.response.wallet.LoanUserWalletResponse;

/**
 * 用户钱包管理后台Service
 * @author chenweijun 2018/02/17
 *
 */
public interface LoanUserWalletService extends CommonService<LoanUserWallet, Long>{
	
	/**
	 * 查询用户钱包列表
	 * @param pageSearcher
	 * @return
	 */
	Page<LoanUserWalletResponse> list(PageSearcher<LoanUserWalletRequest> pageSearcher);
	
	
	/**
	 * 根据用户Id查询钱包
	 * @param userId
	 * @return
	 */
	LoanUserWallet findByUserId(Long userId);
	
	/**
	 * 根据Id查询钱包
	 * @param id
	 * @return
	 */
	LoanUserWallet findById(Long id);
	

}
